<?php
/**
 * @package LaravelBoot
 *
 * @internal
 *
 * @author mawenpei
 * @date 2019/3/12 18:36
 * @version
 */
namespace Modules\ApiV2\Middleware;

use Closure;
use Modules\Token\Facades\Token;

class ApiMiddleware
{
    public function handle($request, Closure $next)
    {
        return fail(403,"请打钱后访问...");
//        $token = $request->header('Token') ?: $request->input('token');
//        if (!$token) {
//            return fail(403, '请登录后再访问');
//        }
//
//        if (!Token::has($token)) {
//            return fail(403, '帐号过期，请退出后重新登录');
//        }

        return $next($request);
    }
}